<%--
  Created by IntelliJ IDEA.
  User: jackiechan
  Date: 2021/8/31
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
创建了一个 User 类型的对象,变量名叫 u
--%>
<jsp:useBean id="u" class="com.qianfeng.pojo.User"/>
<%--
设置属性
--%>
<jsp:setProperty name="u" property="age" value="1000"/>
<jsp:setProperty name="u" property="name" value="wyf"/>

<%--
获取属性的值
--%>
<jsp:getProperty name="u" property="name"/>
<jsp:getProperty name="u" property="age"/>

</body>
</html>
